FROM openjdk:8-jre-alpine
COPY ./target/avengine-server-*.jar /opt/avengine-server/avengine-server.jar
WORKDIR /opt/avengine-server
EXPOSE 8881/tcp

ENV JVM_XMX 1G
ENV JVM_XMS 1G

CMD java -server -Xmx$JVM_XMX -Xms$JVM_XMS -Duser.timezone=GMT+08 -jar avengine-server.jar
